package com.easy.secret.service;

/**
 * @ProjectName: esay-secret-server
 * @Package: com.easy.secret.service
 * @ClassName: SecureService
 * @Description: java类作用描述
 * @Author: wangjc
 * @CreateDate: 2023/11/17
 * @UpdateUser: wangjc
 * @UpdateDate: 2023/11/17
 * @UpdateRemark: 更新内容
 * @Version: 1.0
 */
public interface SecureService {
    /**
     * 解密
     * @param entityObj
     * @param <T>
     * @return
     * @throws IllegalAccessException
     */
    <T> T decrypt(T entityObj) throws IllegalAccessException;

    /**
     * 加密
     * @param entityObj
     * @param <T>
     * @return
     * @throws IllegalAccessException
     */
    <T> T encrypt(T entityObj) throws IllegalAccessException;
}
